package com.dhkj.circle.entity;

import java.util.Arrays;

/**
 * 该操作类属于卡片的基本信息
 */
public class CardInfo {

    public long snr; // 卡片序列号
    public char[] gsdm = new char[4]; // addr=6;len=2;公司代码:1997
    public String dwmm; // 2单位密码addr=34;len=2;单位密码 6789
    public int kh; // 6卡号addr=36;len=4卡号
    public long Balance; // 1钱包;金额
    public char[] zyh = new char[10]; // 4住院号 len=10
    public String name; // 2姓名addr=115;len=8;姓名
    public char KL; // rbuf[127]; //卡类型
    public char ZH; // 灶类 1
    public char[] BQH = new char[2]; // 病区号 2
    public char[] KSH = new char[2]; // 科室号 2
    public char[] BED = new char[10]; // 1床号rbuf[133]+rbuf[134]+rbuf[135]+rbuf[136]+rbuf[137]+rbuf[138]+rbuf[139]+rbuf[140];//床号
    // 8
    public int KCB; // 4卡押金
    public String FKRQ; // 5发卡日期addr=144;len=4;发卡日期
    // 接触式使用
    public byte NwCard; // 接触式新旧卡
    public byte FTCard; // 发卡退卡
    public char[] CRC = new char[4]; // addrr=123;ic1.len=4 IC卡校验
    public char[] SYSCARDNO = new char[10];
    // 感应式使用
    public int je; // 金额
    public int btje; // 补贴金额
    public int addje; // 上次充值金额
    public int UseTimes; // 5消费次数

    public int BalanLim; // 3限定金额
    public byte BTBytes; // 0x00 无补贴功能，=0x1 启用补贴钱包
    public byte CardLost; // 5挂失标志正常卡 0xFF,挂失卡 0xAA
    public byte CardStru; // 卡片使用状态
    public byte PayDate; // 消费日期，用于每天最大消费消费统计
    public long BTBalan; // 补贴钱包
    public byte BTYear; // 补贴发行年
    public byte BTMonth; // 补贴发行月
    public byte BTDay; // 补贴发行日
    public int PayAdd; // 每日消费累加
    public long LastInput; // 3最后一次充值
    public int LastPay; // 4最后一次扣款
    public byte PayLabel; // 1扣款标志
    public char ListNo; // 卡片流水号
    public boolean RMList; // 确定是发新卡还是补卡,发新卡时是不写流水号的已有流水号了,补卡时是需要流水号的.从数据库中找出.
    public boolean IfUse7; // 确定是否使用7区
    public char ver;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getJe() {
        return je;
    }

    public void setJe(int je) {
        this.je = je;
    }

    @Override
    public String toString() {
        return "CardInfo{" +
                "snr=" + snr +
                ", gsdm=" + Arrays.toString(gsdm) +
                ", dwmm='" + dwmm + '\'' +
                ", kh=" + kh +
                ", Balance=" + Balance +
                ", zyh=" + Arrays.toString(zyh) +
                ", name='" + name + '\'' +
                ", KL=" + KL +
                ", ZH=" + ZH +
                ", BQH=" + Arrays.toString(BQH) +
                ", KSH=" + Arrays.toString(KSH) +
                ", BED=" + Arrays.toString(BED) +
                ", KCB=" + KCB +
                ", FKRQ='" + FKRQ + '\'' +
                ", NwCard=" + NwCard +
                ", FTCard=" + FTCard +
                ", CRC=" + Arrays.toString(CRC) +
                ", SYSCARDNO=" + Arrays.toString(SYSCARDNO) +
                ", je=" + je +
                ", btje=" + btje +
                ", addje=" + addje +
                ", UseTimes=" + UseTimes +
                ", BalanLim=" + BalanLim +
                ", BTBytes=" + BTBytes +
                ", CardLost=" + CardLost +
                ", CardStru=" + CardStru +
                ", PayDate=" + PayDate +
                ", BTBalan=" + BTBalan +
                ", BTYear=" + BTYear +
                ", BTMonth=" + BTMonth +
                ", BTDay=" + BTDay +
                ", PayAdd=" + PayAdd +
                ", LastInput=" + LastInput +
                ", LastPay=" + LastPay +
                ", PayLabel=" + PayLabel +
                ", ListNo=" + ListNo +
                ", RMList=" + RMList +
                ", IfUse7=" + IfUse7 +
                ", ver=" + ver +
                '}';
    }
}
